﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Main : MonoSingleton<Main>
{
    void Start()
    {
        PoolManager.Instance.Initialize();
        ConfigManager.Instance.Initialize();
        SoundManager.Instance.Initialize();
        UIManager.Instance.Initialize();
    }

    void Update()
    {
        Scheduler.Instance.Update();
    }

    private void OnApplicationQuit()
    {
        PlayerPrefs.Save();
    }

    void OnApplicationPause(bool isPaused)
    {
        PlayerPrefs.Save();
    }
}
